<?php

/**
 * Mapa Google
 * 
 * @category Zwei
 * @package Zwei_Admin
 * @subpackage Components
 * @version $Id:$
 * @author Rodrigo Riquelme <rodrigo.riquelme.e@gmail.com>
 * @license GNU GPL-v2 http://www.gnu.org/licenses/gpl-2.0.html
 * @since 0.1
 * @link http://code.google.com/p/xml-admin/
 *
 */

class Zwei_Admin_Components_GoogleMap extends Zwei_Admin_Controller
{
	public $page;
	protected $_acl;
	
	function __construct($page){
    	$this->page=$page;
    	$userInfo = Zend_Auth::getInstance()->getStorage()->read();
    	$this->_acl = new Zwei_Admin_Acl($userInfo->user_name);
	    $this->getLayout();
	}

	function display(){
    	$form=new Zwei_Utils_Form();
    	$request=array(); 
    	foreach (get_object_vars($form) as $var=>$val){
    		$request[$var]=$val; 
    	}
    	$url=urlencode($this->layout[0]["TARGET"]);
	    $out="
	    <div id=\"map_canvas\" style=\"width:100%\">\r\n";
	    $out .= "</div>\r\n";
	    $out.="
	    <script type=\"text/javascript\">
	    $(document).ready(function() {
            initialize();
        });
	    </script>
        ";
	    return $out;
	}
}
